package com.sp2.dev.apachecommons;

import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.lang.time.FastDateFormat;
import org.junit.Test;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-18
 * Time: 上午9:58
 * To change this template use File | Settings | File Templates.
 */
public class DateFormatUtilTest {
    public static final FastDateFormat DATETIME_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss");
    @Test
    public void test(){
        Date now = new Date();
        String isoDate = DateFormatUtils.ISO_DATE_TIME_ZONE_FORMAT.format(now);
        System.out.println(isoDate);
//DATETIME_FORMAT

    }
}
